//
//  NHUtils.h
//  LZNeiHan
//
//  Created by 梁梓烽 on 16/10/1.
//  Copyright © 2016年 liangzifeng. All rights reserved.
//

/**
 *  全局工具类
 */
#import <Foundation/Foundation.h>
#import <UIKit/UIKit.h>
typedef void(^XRRefreshAndLoadMoreHandle)(void);

@interface NHUtils : NSObject


/** 开始下拉刷新 */
+(void)beginPulRefreshForScrollView:(UIScrollView *)scrollview;


/** 停止下拉刷新 */
+(void)endRefreshForScrollView:(UIScrollView *)scrollview;

/** 停止上拉加载 */
+(void)endLoadMoreForScrollView:(UIScrollView *)scrollview;
/** 判断头部是否在刷新 */
+(BOOL)headerIsRefreshForScrollView:(UIScrollView *)scrollview;
/** 判断尾部是否在刷新 */
+(BOOL)footerIsRefreshForScrollView:(UIScrollView *)scrollview;

/** 提示没有更多的数据 */
+(void)noticeNoMoreDataForScrollView:(UIScrollView *)scrollview;

/** 重置footer */
+(void)resetNoMoreDataForScrollview:(UIScrollView *)scrollview;


/** 隐藏header */

+(void)hiddenHeaderForScrollView:(UIScrollView *)scrollView;


/** 隐藏footer */
+(void)hiddenFooterForScrollView:(UIScrollView *)scrollView;


/** 下拉刷新 */
+(void)addLoadMoreForScrollView:(UIScrollView *)scrollView loadMoreCallBack:(XRRefreshAndLoadMoreHandle)loadMoreCallBack;

/** 上拉加载 */

+(void)addPullRefreshForScrollView:(UIScrollView *)scrollView pullRefreshCallBack:(XRRefreshAndLoadMoreHandle)
pullRefreshCallBack;

@end
